<?php
$jige = 70;
$shuxue = 100;
$yvwen = 100;
$yingyv = 100;
$pingjun = ($shuxue+$yvwen+$yingyv)/3;
 
?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>成绩展示</title>
</head>
<body>
    语文成绩=<?php echo "$yvwen";?><br>
    数学成绩=<?php echo "$shuxue";?><br>
    英语成绩=<?php echo "$yingyv";?><br>
    平均成绩=<?php echo "$pingjun";?><br>
    及格分数线：<?php echo "$jige";?><br>
    你的成绩：<?php if($pingjun >= $jige):?>
    <span style="color:green">及格</span>
    <?php else : ?>
    <span style="color:red">不及格</span>
    <?php endif; ?>
</body>
</html>